package io.seata.sample;

import com.alibaba.nacos.api.annotation.NacosInjected;
import com.alibaba.nacos.api.exception.NacosException;
import com.alibaba.nacos.api.naming.NamingService;
import com.alibaba.nacos.spring.context.annotation.config.NacosPropertySource;
import io.seata.sample.util.IpUtil;
import io.seata.spring.annotation.datasource.EnableAutoDataSourceProxy;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;

import javax.annotation.PostConstruct;

/**
 * 库存服务
 * @author brucelee
 */
@MapperScan("io.seata.sample.dao")
@NacosPropertySource(dataId = "storage", autoRefreshed = true)
@EnableAutoDataSourceProxy
@SpringBootApplication
public class StorageServerApplication {
	public static void main(String[] args) {
		SpringApplication.run(StorageServerApplication.class, args);
	}

}
